package InheritanceTest;

public class MankKind {

    private int sex;
    private int salary;

    public MankKind(){

    }

    public MankKind(int sex, int salary){
        this.salary = salary;
        this.sex = sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSex() {
        return sex;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getSalary() {
        return salary;
    }

    public void manOrWoman(){
        if (sex == 1){
            System.out.println("man");
        }else
            System.out.println("women");
    }

    public void employeed(){
        if (salary == 0){
            System.out.println("No Job");
        }else
            System.out.println("job");
    }

}
